home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 3 / Info_Mac_1994-01.iso / Development / Source / Arashi 1.1 Source / For your think c folder / VA Kit ƒ / VASins.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-09  |  526 b   |  32 lines  |  [TEXT/KAHL]

  1. /*/
  2.      Project Arashi: VASins.c
  3.      Major release: Version 1.1, 7/22/92
  4.  
  5.      Last modification: Wednesday, September 9, 1992, 21:42
  6.      Created: Sunday, February 12, 1989, 22:47
  7.  
  8.      Copyright © 1989-1992, Juri Munkki
  9. /*/
  10.  
  11. #define    _VASINS_
  12. #include "VA.h"
  13. #include "VAInternal.h"
  14.  
  15. #define PI 3.1415926535
  16.  
  17. int        errno;
  18.  
  19. #undef    _ERRORCHECK_
  20. #define    _NOERRORCHECK_
  21. #include <Math.h>
  22.  
  23. void    VAInitSins()
  24. {
  25.     register    int        a;
  26.     
  27.     for(a=0;a<ANGLES;a++)
  28.     {    Sins[a]=sin(a*2*PI/ANGLES)*256;
  29.         Cosins[a]=cos(a*2*PI/ANGLES)*256;
  30.     }
  31. }
  32.